<form action="" method="post" novalidate="novalidate">

    <input hidden="hidden" id="star" value="1">

    <h3 class="form-title">调货</h3>

    <div>
        从
        <select id="addr" name="Source_Addr">
            <?php
            for ($i = 0; $data ['sname'][$i] != ""; $i++){
                echo "<option>".$data ['sname'][$i]['name']."</option>";
            }
            ?>
        </select>
        调取
        <select id="i_type">
            <?php
            for ($i = 0; $data ['shopsname'][$i] != ""; $i++){
                echo "<option>".$data ['shopsname'][$i]['type']."</option>";
            }
            ?>
        </select>
        <select name="i_name" id="i_name">
            <option>请选择商品分类</option>
        </select>
        <input type="text" autocomplete="off" placeholder="请输入商品数量" name="i_num"/>
        到
        <select name="Destinations">
            <?php
            for ($i = 0; $data ['sname'][$i] != ""; $i++){
                echo "<option>".$data ['sname'][$i]['name']."</option>";
            }
            ?>
        </select>

    <button type="submit" class="btn btn-success">开始调货</button>

    </div>

</form>

<div class="row">
    <div class="col-lg-6" style="color:#b94a48;margin-top: 10px;">
        <?php echo isset($data ['Inventory_Transfer_Info']) ? $data ['Inventory_Transfer_Info'] :'' ?>
    </div>
</div>

<div class="row">

    <!-- 左边 -->
    <div class="col-lg-6">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">调货日志</h3> <small>最多显示20条</small>
            </div><!-- /.box-header -->
            <div class="box-body">
                <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
                    <div class="row">
                        <div class="col-sm-6"></div>
                        <div class="col-sm-6"></div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <table class="table table-bordered table-hover dataTable">
                                <thead>
                                <tr role="row">
                                    <th class="sorting">操作员</th>
                                    <th class="sorting">时间</th>
                                    <th class="sorting">商品</th>
                                    <th class="sorting">数量</th>
                                    <th class="sorting">源仓库地址</th>
                                    <th class="sorting">目标仓库地址</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php
                                for ($i = 0; $i < $data['Inventory_Transfer_Log'][$i]; $i++){ ?>
                                    <tr>
                                        <td>
                                            <?php echo $data['Inventory_Transfer_Log'][$i]['name']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_Transfer_Log'][$i]['time']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_Transfer_Log'][$i]['item']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_Transfer_Log'][$i]['num']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_Transfer_Log'][$i]['source_addr']; ?>
                                        </td>
                                        <td>
                                            <?php echo $data['Inventory_Transfer_Log'][$i]['destinations']; ?>
                                        </td>
                                    </tr>
                                <?php }?>
                                </tbody>
                                <tfoot>
                                <tr role="row">
                                    <th class="sorting">操作员</th>
                                    <th class="sorting">时间</th>
                                    <th class="sorting">商品</th>
                                    <th class="sorting">数量</th>
                                    <th class="sorting">源仓库地址</th>
                                    <th class="sorting">目标仓库地址</th>
                                </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div><!-- /.box-body -->
            </div>
        </div>
    </div>

    <!-- 右边 -->
    <div class="col-lg-6">

    </div>

</div>
